﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using HelenServer.BugEngine.Contracts;
using Microsoft.EntityFrameworkCore;

namespace HelenServer.BugEngine.Dal;

[Table("OperationLog")]
public partial class OperationLog
{
    [Key]
    public int Id { get; set; }

    public BugOperation Operation { get; set; }

    [StringLength(16)]
    [Unicode(false)]
    public string Extra { get; set; } = string.Empty;

    public int Operator { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime OperatedDate { get; set; }

    public virtual ICollection<OperationLogDetail> Details { get; set; } = new List<OperationLogDetail>();

    [Unicode(false)]
    public string? Remark { get; set; }
}